package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 业务通知规则表
 * </p>
 *
 * @author li.shiying
 * @since 2023-03-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_receiver_valve_state")
@ApiModel(value="ReceiverValve对象", description="接收器和电磁阀状态更新表")
public class ReceiverValve implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "报警器设备主键")
    @TableField("device_id")
    private String deviceId;

    @ApiModelProperty(value = "接收器编号")
    @TableField("receiver_code")
    private String receiverCode;

    @ApiModelProperty(value = "接收器类型 市电款 电池款")
    @TableField("receiver_type")
    private String receiverType;

    @ApiModelProperty(value = "供电方式")
    @TableField("receiver_power_mode")
    private String receiverPowerMode;

    @ApiModelProperty(value = "接收器状态 0-离线,1-正常")
    @TableField("receiver_status")
    private Integer receiverStatus;

    @ApiModelProperty(value = "电池状态 0-电池正常 1-电池欠压")
    @TableField("battery_status")
    private Integer batteryStatus;

    @ApiModelProperty(value = "电磁阀ID")
    @TableField("valve_id")
    private String valveId;

    @ApiModelProperty(value = "阀门状态 0-开 1-关")
    @TableField("valve_status")
    private Integer valveStatus;

    @ApiModelProperty(value = "故障状态 0-否 1-是")
    @TableField("broken_status")
    private Integer brokenStatus;

    @ApiModelProperty(value = "故障原因")
    @TableField("broken_status_info")
    private String brokenStatusInfo;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_at")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间")
    @TableField("updated_at")
    private Date updatedAt;

    @ApiModelProperty(value = "是否删除 0-未删除, 1-删除")
    @TableField("is_deleted")
    private Integer isDeleted;

    @ApiModelProperty(value = "企业编号")
    @TableField("sp_id")
    private String spId;
}
